package entity;

public class Usermenu {
    private String orderNumber;

    private Integer productId;

    private Integer productAmount;

    private Double productPrice;

    public Usermenu(String orderNumber, Integer productId, Integer productAmount, Double productPrice) {
        this.orderNumber = orderNumber;
        this.productId = productId;
        this.productAmount = productAmount;
        this.productPrice = productPrice;
    }

    public Usermenu() {
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber == null ? null : orderNumber.trim();
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getProductAmount() {
        return productAmount;
    }

    public void setProductAmount(Integer productAmount) {
        this.productAmount = productAmount;
    }

    public Double getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(Double productPrice) {
        this.productPrice = productPrice;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", orderNumber=").append(orderNumber);
        sb.append(", productId=").append(productId);
        sb.append(", productAmount=").append(productAmount);
        sb.append(", productPrice=").append(productPrice);
        sb.append("]");
        return sb.toString();
    }
}